#!usr/bin/node

const Koa = require('koa'),
      Router = require('koa-router'),
      koaBody = require('koa-body');

const app = new Koa(),
      router = new Router();

router.post('/files/',async (ctx,next) => {
  console.log(ctx.request.body);

  ctx.body = JSON.stringify(ctx.request.body);
})

app.use(koaBody());

app.use(router.routes());

app.listen(8080);
